function valbutton(thisform,objname) {
	var objradio = thisform.radioTK;
	var radioLength = objradio.length;
	var id, i;
	if(!radioLength){
		id = objradio.value;		
	}else{
		for(i = 0; i < radioLength; i++){
			if(thisform.radioTK[i].checked){
				id = thisform.radioTK[i].value;
				break;
			}
		}
	}
	alert(id);
	var name = id.split('-');
	//alert(name[1]);
	var lblname = objname.split('-');
	//alert(lblname[1]);
	//alert(lblname.length);
	if(lblname.length>1){//truyen vo acctno va currcode
		var obj1 = window.opener.document.getElementById(lblname[0]);
		var obj2 = window.opener.document.getElementById(lblname[1]);
		//alert(lblname[0] - lblname[1] - name[0] - name[1]);
		if(obj1){
			obj1.value = name[0];
			obj2.value = name[1];
		}		
	}else{
		var obj = window.opener.document.getElementById(lblname);
		if(obj){
			obj.value = name[0];
		}
	}
	window.close();
}
